﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LanguageDetector
{
    public class CharacterEncoding : ICharacterEncoding
    {
        int _id;
        public int ID
        {
            get { return _id; }
            set { _id = value > 0 ? value : 0; }
        }

        public string Encoding { get; set; }

        List<int> _langs = new List<int>();
        public List<int> LanguageIDs
        {
            get { return _langs; }
            set
            {
                _langs.Clear();
                if (!value.IsNullOrEmpty())
                    _langs.AddRange(value);
            }
        }
    }
}
